﻿using System;
using System.Linq;
using System.Web.Security;

namespace Ones
{
    public partial class MasterPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //////////////////////////////////////
            //                                  //
            // AUTHEN and AUTHORIZE right here. //
            //                                  //
            //////////////////////////////////////
        }

        protected void logout_Click(object sender, EventArgs e)
        {
            Session.Abandon();
            FormsAuthentication.SignOut();
            Response.Redirect("~/Login.aspx");
        }
    }
}